package com.jsb.laundry.model.shops;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 客户管理详情
 *
 * @JsonAlias({"od"}) json->java 反序列化
 * @JsonProperty("oid") java->json 序列化
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UserManagerDetailVo implements Serializable {

    private static final long serialVersionUID = 701700626615489655L;

    private List<ShopOrderVo> orderInfoList;

    private UserInfo userInfo;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Accessors(chain = true)
    public static class UserInfo {
        @ApiModelProperty(value = "客户id")
        private String userId;
        @ApiModelProperty(value = "客户电话")
        private String userPhone;
        private String userName;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value = "注册时间")
        private Date registerTime;

        @ApiModelProperty(value = "累计返佣金额")
        private String withdraw;
        @ApiModelProperty(value = "已结算佣金")
        private String alreadyRebateTotal;
        @ApiModelProperty(value = "待结算佣金")
        private String waitRebateTotal;

        @ApiModelProperty(value = "累计返佣笔数")
        private String rebateNum;
        @ApiModelProperty(value = "已结算笔数")
        private String alreadyRebateNum;
        @ApiModelProperty(value = "待结算笔数")
        private String waitRebateNum;
    }



}
